﻿using Castle.Windsor;
using Crowler.Model.CoreComponents;

namespace CoreComponents
{
    public class Resolver : IResolver
    {
        private readonly IWindsorContainer _windsorContainer = ContainerInitializer.WContainer;

        public T Get<T>()
        {
            return _windsorContainer.Resolve<T>();
        }

        public T Get<T>(string key)
        {
            return _windsorContainer.Resolve<T>(key);
        } 
    }
}
